package tieba.dao;

import java.util.List;
import java.util.Map;

public interface IBaseDAO<T> {

	public void insert(T entity);

	public void delete(T entity);

	public void update(T entity);

	public T selectById(int id);

	public boolean selectByName(String paramName, String name);

	public List<T> selectList(Integer pageNum, Integer pageSize, String name,
			String sort);

	public List<T> searchList(Map<String, Object> conditions, Integer pageNum,
			Integer pageSize, String name, String sort, Boolean islike);

	public T searchUnique(Map<String, Object> conditions, Boolean islike);

}
